package b3.config
{
	
	public class BuildingConfig extends ObjConfig
	{
		//普通
		public static const NORMAL:int = 0;
		//武器
		public static const WEAPON:int = 1;
		//绿化
		public static const GREEN:int = 2;
		//奇迹
		public static const MIRACLE:int = 3;
		//中立
		public static const NEUTRAL:int = 4;  
		
		//类名
		public var className:String;
		//解锁提示
		public var unlockPrompt:Array;
		//高度 
		public var height:int;
		//角度
		public var angle:int;
		//相邻需要的房屋
		public var nearRequire:Array;
		//箱子（一层）宽度
		public var boxWidth:int;
		//箱子（一层）高度
		public var boxHeight:int;
		//底层图像
		public var groundImage:Array;
		//顶需要人口（建设时）
		public var roofRequirePopulation:Array;
		//顶解锁人口
		public var roofUnlockPopulation:Array;
		//升级解锁人口
		public var upgradeUnlockPopulation:Array;
		//中间层图像
		public var floorImage:Array;
		//顶层图像
		public var roofImage:Array;
		//立体图
		public var isoImage:Array;
		//占地x
		public var isoWidth:int;
		//占地y
		public var isoHeight:int;
		//体力消耗
		public var vitalityCost:int;
		//收租冷却（分钟）
		public var rentCollectCoolDown:int;
		//收租的物品
		public var rentObjectIndex:int;
		
		public function BuildingConfig(buildingXML:XML)
		{
			roofUnlockPopulation = new Array();
			unlockPrompt = new Array();
			upgradeUnlockPopulation = new Array();
			super(buildingXML)
			if (isoWidth == 0)
			{
				isoWidth = 1;
			}
			if (isoHeight == 0)
			{
				isoHeight = 1;
			}
		}

	}
}